added [].indexOf polyfill