fix JSHint warnings