changed directory structure for JS client code
Refactoring due to new directory structure