Moved script tag towards the end of html