replaces $.attr calls to use $.prop instead