Update path.js

Returning in global context is not valid. Here's a fix.
Merge pull request #4 from michael/patch-1

Update path.js