binary encoding in the browser

#262