A JS version of Cookies in Ovens