Fixing a bug. Some of my de-jquerying was incorrect.