refactor some js