jQuery

I jQueryified most of it. Not sure what to do with the innerHTML += parts, so I left those alone.