add conditional update for ML

mv render_ml.js to ML.js