Fixed relative path issues in core.js