clean up deferred.js