basic JS, wf state CSS, remove outdated code