general cleanup found using jshint