JavaScript doesn't have tanh built in, so you have to use an approximate: http://stackoverflow.com/questions/6118028/fast-hyperbolic-t...
JavaScript doesn't have tanh built in, so you have to use an approximate: http://stackoverflow.com/questions/6118028/fast-hyperbolic-t...