re js