Use a partial(foo, bar) function instead of foo.bind(null, bar)