WIP For Browser.js: finished code cleaning, refactoring.

Now the interface has to be changed.