[chore] Code cleanup, jshint change, added test

- Fixed issue with module definition for new API
- Changed JShint rule to use " rather than '
- Changed files to use "
- Copied over test for the new API