fixed js error that was breaking chrome