Starting to change JS code for rep display