Changing Code for Ajax Passing Test