add config.js
change api,not complete