A simple neural network implementation in vanilla javascript