Fix blocking JS errors from IE 6-8