re-fixing js error