Refactoring code
refactoring - next part
moving functionality to ugly-browser.js
NPM