Ensure that JS resources are loaded