code cleanup
rewrote some JS/CSS