diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml
index 6a5d085bf30bf10ed90f491014e77593ef03e69c..cc6ddcad8fccf1d1887f752efeb96bd7b4e9665f 100644
--- a/app/views/layouts/application.html.haml
+++ b/app/views/layouts/application.html.haml
@@ -65,6 +65,17 @@
- if rtl?
= include_stylesheets :rtl, :media => 'all'
+ :javascript
+ // Support for older browsers
+ if(Array.isArray === undefined) {
+ Array.isArray = function (arg) {
+ return Object.prototype.toString.call(arg) == '[object Array]';
+ };
+ }
+ if ((window.history) && (window.history.pushState === undefined)) {
+ window.history.pushState = function() { };
+ }
+
= csrf_meta_tag