use .prop() for setting properties on nodes instead of .attr()