clean up some warnings from JSHint