A JavaScript browser-based artificial neural network