changed Rform in js