Basic JS example of this popular game