update core.js and README.md