decision tree with javascript for course Pattern Recognition