added pkg json, made custom evt polyfill conditional