Auto-curry in JS part 2

A few typos fixed, minor re-structuring.