Moved scripts back to page top to fix JS issues with Panopoly