Rewrited application to backbone.js