Bugfix browser utils for phantom

### CHANGE SUMMARY
* Made it work with PhantomJS.

### CODE COVERAGE
* 100%