js: dot function(prop, obj) with autoCurry