Add a polyfill for firefox