Working version of browser sample