Add curry/partial/partialLast modules to function.js
Fix function/partial example in the docs