refactoring scss and js