Move javascript tag back into head of document