Currying in Javascript | OKKY