move include JavaScript files to the end of the HTML
Revert "move include JavaScript files to the end of the HTML"

This reverts commit 3e7b32c086eb36617905858920a3ba32e69afe3e.