changning rep to represent in js