white space tidy
typos
Updated use of JavaScript

JS didn't quite make up 1% of the client side - in fact, the entire thing comes off more than rough around the edges without JS turned on. So, let's say the last 10% is done in JavaScript.