main backbone.js logic