refactor main.js to backbone