Added various polyfills to support mobile browsers