Should exclude path too when used in browser.
Merge pull request #128 from JacksonTian/browser

Should exclude path too when used in browser.