Testing jQuery Ajax separately