See the Pen Tensorflow.js Boilerplate by Edgar Valdés (@Ekaropitz) on CodePen.