add support for ie8 and optimize for good multi browser experience