create deferred.js file