Many tweaks and improvements to CSS and JS