jsHint fixes

fixed some warnings from jsHint