Explain how the script embed method works