Browser support

WIP - needs tests