Rewrite with backbone.js