Avoid http dependency in browsers

See #13