I wrote a simple feedforward neural network that works like a charm with excellent accuracy on NodeJS. However, in the browser it performs terrible. The cost reduction is the sa