[Task] change js structure