functioncurryingandbindinjavascript