change path of javascript ajax function object