Autocurry in JS part 2

Title updated