fixed code that was with in the ajax function. It was not supposed to be living there.