Fixing control.  Formatting clean up.

Removed the jquery each and opted for JS for instead.  Also, some minor
formatting polish.