Simple game on JavaScript