added config and cleaned up resource.js
Merge remote-tracking branch 'origin/master'