entity js update