Changed .attr function to .prop to fix #5

This PR fixes #5 by changing the .attr function with .prop, which is more appropriate to change the radio button states.