Added js/util.js with Modular's .each(...), .extend(...) etc.
Added tests for Register class