Update index.js

Forgot oops async var assignment mistake - checkpoint was never going to get set