Ajax send post and get requests utility