Ajout method get history on js api