change formatting and add performance polyfill