style fixes and js clean ups