Neural networks in JavaScript