Added custom 'opened' and 'closed' events
Closes #214 - Destroy causing stackoverflow
Reverting demo page
Releasing v3.8.1