jquery fixes & added example