Move render blocking JavaScript at the bottom of body

**Background:**
A `<script>` block will block all the processing/rendering of DOM until the content of the `<script>` is completely loaded, evaluated and executed. Thus, all the JavaScript should be at the bottom of the DOM.

**This Pull Request:**
- Moves the JavaScript at the bottom of the page