jshint fixes, code consistency add-ons