Fix for new client API

In current git and from the next release there has been some minor changes in the public browser/DOM API.