Curry and Partial for JavaScript