Change one remaining attr("value", for val(

Also corrects the comment on top of that function