Begining refactor to backbone.js