resolve JSHint warnings