Replacing .attr() function calls with .prop() function calls for forward compatibility.

Misc maintenance.