fixed scripts, did not support multiple scripts on the same page.