add indexof for ie8
fix css on old browser