Improvements to main layout file

Moved assets.js() to footer and closed viewport tag. Second attempt!