Added compatibility for Turbolinks

Fixes #53