messing with jQuery, successfully passing attributes between functions