GH44: Fix main layout and replace js file into footer