Adjusted position of script to be loaded in code