Change verification if turbolinks is defined (closes #7)