Ajax get function in place