Extracted jQuery deferred library to run standalone