add js deferred utils