config: fixed js error in older browsers