Note that the html attributes here aren't important - they're just there to let jQuery attach to the correct buttons