Basic Api caller from javascript. Simple way to avoid redundant code of calling the api for those who are not using frameworks