I am not sure if modifying the css in js is the best practice. Perhaps to add/remove a class is better?