Fixed bug in the event Turbolinks isn't defined

Ref #54