Javascript Type Errors Statistics And Probability