Add jshint config and comments for export APIs
Add 'shim' plugin

Also refactor the require test codes