use jQuery's prop() properly