layout.coffee -> layout.js
WIP: Move to JS and Refactoring