changes for js ajax to get call