Little refactor for css and js