decision tree classifier in es6 javascript