This was attempting to call .match() on the jquery object which would fail.