Updated jQuery code to use 'this' instance selector