Use Promise.then() instead of Promise.done() (closes #59)

Use Promise.then() instead of Promise.done() in the example as Promise.done()
no longer exists.