a lottery game wrote by nodejs