feat(js): add errors and warnings