use backbone.js to simplify app