IE8 compatibility fix; updated with correct default localization code