Code for JavaScript Perceptrons with MLP and SLP examples