TypeScript implementation of Backbone.js