updating the js with updation of circle