Fixing some JSHint errors