Added jshint spec test. Applied recommended cleanup.