Fixed JS bug.