refactor less and js