added neural network coffeescript impl