fix toString => asString for ie7 and ie8