Put ajax more locally