jquery-ize and make purty with lots of help from @karoun