JS code update