Moved script tag to head