Replaced '.prop()' methods by '.attr()' for backwards compatibility.