replace name attribute in a tag with id attribute