js primitively done