make Turbolinks a proper function