Fix JS reference to .error