clean up JSHint warnings