swapped $ ref for jquery. derr