Hello,
Yes, it's fairly easy, if you don't mind, I will give you links to my repository, with a bit of explanation.
So I have a backbone view which looks like this:
In this view I'm requiring ePub library.
Than in initialize method I'm creating new instance of the library with the given book url.
Than in render method, I'm just appending the div to which the book was attached and I'm rendering the view.
if you take a look at the beginning of the file you will notice this line : selection = require('epubhooks/selection');
this is the file when I'm keeping my event and it looks like this
The basic concept of ePub library, is that you are able to append any event on beforeChapterDisplay event.
So every time, I'm turning the page in the book (the name of the beforechapeterdisplay can be a bit misleading), I'm attaching new event to the body (look at epubhooks/selection file)
I'm sorry I can't show you the live example, but I haven't deployed mongodb on heroku, but you can form my repo and test it locally.
Ping me if you have any more questions.
Regards!
Mateusz