Moved script tag to a better place