Fixing js error.