Add browser example showing error handling (#5)
Move basic browser example js code into .html file