Update path.js

Add to support legacy IE(6-7)