fix some JSHint errors