added histoy polyfill to support chrome apps