fix www.js defineModule exports
switch apps module from Promising to Bluebird