Simple, lightwight and easy to use ajax function in pure javascript