Refactoring js, css