make jshint pass by removing unused variable