- Fixed a few JSLint errors
- Fixed a problem where the collection returned by createCollection would be null (when doing an insert).