Revert "Moving scripts to end of html"

This reverts commit 06bc5667123f211e1198fa0246473cf4e6b396da.
Revert "Moving JS content to body"

This reverts commit 08002aed8b28085166da424219ff6d4354cefcdc.