Moved script tag to proper place