Improve require priority

Priority: a.js > a.json > a/index.js

Close #22