some changes for compatibility with old versions of IE
v1.8.9