minor CSS/JS refactoring