modules update + utilities.js refactoring for nodejs and browser