Fix errors as per eslint