Fixes JSHint and Travis errors