a javascript cricket scoring system