jshint cleanup
updated tests