Adding underscore for templating and moving scripts out of head and into end of body