jQuery 1.9.0 compatibility

- Changed the use of .attr() for .prop() which is the correct way of setting element properties. This change makes the plug-in compatible with jQuery 1.9.0.