Minor refactoring.
Make it possible to output JS code which will work if Object namespace has been polluted