cleaning up css from html and js logic