using brain.js to recognize handwritten digits