Updating the thread script to use jquery ajax instead of the shitty
getJSON