Add onFulfilled/onRejected to example functions in then()