Fixed web library to call ready() if loaded asynchronously