Prevent js error in IE 8 on XP

A minor tweak to prevent IE 8 from throwing a js error. In my testing on a IE8 virtual machine, I get an error here (sometimes). Adding the check if `tech` is defined seems to clear it up.