Added example for currying in JS