previous attempt at inserting the script tag