Move javascript to head so angular loads ahead of time