Initial browser-js implementation