what is the use of currying in javascript