jshint fixes
cleanup unused code