Several Javascript API updates