Update hosted.js

Allow promises on each config key