Revert "Put JavaScript at bottom"

This reverts commit b5d7217c6405b93b3085d3ce3be51d98bceb6118.