change cluster js logic
Merge branch 'refactor' into refactor_review