Update url.js and APIs

* Update the URLs for the APIs in the url.js
* Remove more unused codes
* Fix and update issues with some of the API that is throwing errors because of doing the JSON.parse twice
* Remove try catch for some of the method that already done in another method.