Revert "restored Ryan's original code as per #181 and https://github.com/readium/readium-shared-js/commit/e41a3cc4aa781aad7487a3228817c789f0e2b465"

This reverts commit 65cf5f88483a0947e797a570ece91e71f5cc46e4.