Use the smaller xhr library for the browser