added simple browser support, todo: browser tests