DEVELOPER-912 initial work on splitting up JS