machine learning con javascript