renamed core.js into fun.js