add path.js to core