created lottery.js