Move script to head.html