fixed jshint errors & removed unused code
1.0.1