Removed use of jquery in definition parsing code, speeding it up by over 40%