Fix javascript hooks (for turbolinks)