JavaScript DOM Game - Deal making game using JavaScript only