Turbolinks support added

Turbolinks replaces `document.body` so the relay doesn't work any more. This fix adds support for Turbolinks and has now drawbacks for websites without Turbolinks.