Changes in update and create js file