Close connection onversionchange [Fix #1]
- Triggered when another page requests a version change
Refactor Ndex.index
- Make sure the transaction is created after the Promise success callback
DRYer Ndex.index