Remove script element

Remove the script element after init.