Fixing up JS some more.