replacing core2.js with core_demo.js