initial async lib changes using jquery deferred