Moves script tag

Moved script tag to head