week 3 javascript: currying, partial function application, etc.