did some old challenges in js