This link goes to a blogpost describing a neural network and back propagation very intuitively. It also shows hot to create a very simple neural network in JavaScript in 30 lines of code using the Synaptic.js library. The example learns the XOR function.
How to create a Neural Network in JavaScript in only 30 lines of code