js error fix: "pseudo is not defined"