GH44: Fix main layout and replace js file into footer

Reviewed and approved.