Fixed JSHint issues (some are now ignored).