Fix for new client API

In current git and from the next release there will been some minor changes in the public browser/DOM API. Please merge this pull request when the next release happens.