Add JavaScript to page head

Scripts are needed to render the page, not simply cater to user
interaction