Updated source and tests to pass jshint task. Now building minified version with uglify.