Neuron simulation in html5