Update `foo.js` in README

When using promises, we don't pass any arguments to `foo()`.