Fixes JSHint errors