A whole bunch of minor changes due to pulling this '09 code through JSHint.