rewrite in backbone.js