Pre-Close Callback/Conform Close Example

Update example's index.html to use pre-close callback.