create genric cricket game javascript