fixes modernizer and turbolinks issue https://github.com/rails/turbolinks/issues/270