changed 'attr' and 'removeAttr' selector to 'prop'

http://api.jquery.com/attr/