js update control