Slot machine javascript game