reg js fix