added cradle (couchdb library, not used yet), added adverts.js resource