added array polyfill js