linting errors picked up by jshint
most tests are passing now.  Only remaining piece is the 'core' API