betslip table with javascript