[js] Change directory for modules