Refactor JSNamespace, one object map was not converted to ES6 map class as iteration may not work in V8 yet.
Refactored order of parameters. Forgot to change arguments order