Sample bowling score application using javascript