Add tests for creating bindings from regular objects
Fix some jslint errors