Added JS targets support

+some changes in namespaces.