RF-13632: refactor JS namespaces