switch to xhr, bundle umd version