add index.js as copy of jsonfn.js without module support - component build will generate standalone module, replace jsonfn.js with standalone build via make