determine referer in loader.js
Merge pull request #6 from fanweixiao/gh-pages

fix issue #4