Refactors js to user Marionette's Layout