determinate input and output of _determinateDOM in OOP style
Serious change and refactor: there are no 2 arguments (main,params), but only one (params) from now
another serious refactor