Added JSDoc to Backbone.js and fixed a few issues.

Added JSDoc to backbone.js to provide some intellisense assistance when using. When doing so, I discovered a few issues that I fixed as well.