css/js refactor (still some header problems)