Integrating JavaScript with TypeScript (and Backbone and Knockout)