Javascript dice game