Migrate to backbone.js