Resolves JSHint errors