Fixes JSHint issues