Fixing up JS bug.