http client wrapper for scala-js