Update JS rules