js path structure refactor