prepare code for transformation into more ambitious project
stop polluting global javascript namespace