Clean up after loading the JS and update deps