Small JavaScript implementation of ID3 Decision tree