Some API changes, Added Completed function in JS