added polyfills for localstorage and canvas