rest of ajax js file