use removeAttr() instead of css()