Let JS apear optionally in the head

This will enable us to transition applications over to the JS at the
bottom approach rather than forcing it upon everyone.