Sails adapter for JSDom