Autocomplete (jqueryui) working only in Chrome

Autocomplete (jqueryui) working only in Chrome

Hi - I'm quite new to both js and jQuery, but so far I've been excited by how easy it is to accomplish difficult tasks.
 
However  it's full stop now. I have an autocomplete function that works excellent in Chrome. I have to make it work in IE9 as well, and I can't figure out what is wrong.
 
A request like: http://nrkdt58617/sn/api/suggestions/Makhatsj from the autocomplete function
will return json.
 
I'm enclosing both my code and a sample json response. In advance, thanks a lot for any help,
 
--bjørnarM
 
 
 <link rel="stylesheet" type="text/css" href="jquery-ui.css" />
 <script src=" http://code.jquery.com/jquery-1.9.1.js"></script>
 
 
  1. <script>
    $(function() {
  2.     function log( message ) {
  3.       $( "<div>" ).text( message ).prependTo( "#places" );
  4.       $( "#places" ).scrollTop( 0 );
  5.     }
  6.  
  7.     $( "#city" ).autocomplete({
  8.       source: function( request, response ) {
  9.         $.ajax({
  10.           url: "http://nrkdt58617/sn/api/suggestions/" + request.term,
  11.           success: function( data ) {
  12.             response( $.map( data, function( item ) {
  13.     console.log (item.name.nno);
                  return {
  14.                 label: item.path.nno,
  15.                 value: item.name.nno + " (" + item.categoryName.nno + ")"
  16.               }
  17.             }));
  18.           }
  19.         });
  20.       },
  21.       minLength: 2,
  22.       select: function( event, ui ) {
  23.         log( ui.item ?
  24.           ui.item.label + ";" :
  25.           "Nothing selected, input was " + this.value);
  26.       },
  27.       open: function() {
  28.         $( this ).removeClass( "ui-corner-all" ).addClass( "ui-corner-top" );
  29.       },
  30.       close: function() {
  31.         $( this ).removeClass( "ui-corner-top" ).addClass( "ui-corner-all" );
  32.  $('input[name=city]').val('');
  33.       }
  34.     });
  35.   });
  36. </script>
JSON response: 
[ { "id": "PunktUtlandet:532096", "type": "gnppla", "position": [ 42.97638, 47.50236 ], "name": { "nno": "Makhatsjkala", "nob": "Makhatsjkala", "eng": "Makhachkala", "fkv": "Mahatškala", "sme": "Makhatsjkala" }, "path": { "nno": "stad/Russland/Dagestan/Makhatsjkala", "nob": "sted/Russland/Dagestan/Makhatsjkala", "eng": "place/Russia/Dagestan/Makhachkala", "fkv": "paikka/Ryssä/Dagestan/Mahatškala", "sme": "sadji/Ruošša/Dagestan/Makhatsjkala" }, "category": "gnppla", "categoryName": { "nno": "regionshovudstad", "nob": "regionshovedstad", "eng": "regional capital", "fkv": "hallintoalan pääkaupunki", "sme": "regionshovedstad" }, "pathData": null }, { "id": "PunktUtlandet:532097", "type": "gnppl", "position": [ 44.46444, 45.03028 ], "name": { "nno": "Makhatsj-Aul", "nob": "Makhatsj-Aul", "eng": "Makhach-Aul", "fkv": "Makhach-Aul", "sme": "Makhatsj-Aul" }, "path": { "nno": "stad/Russland/Stavropol/Makhatsj-Aul", "nob": "sted/Russland/Stavropol/Makhatsj-Aul", "eng": "place/Russia/Stavropol/Makhach-Aul", "fkv": "paikka/Ryssä/Stavropol/Makhach-Aul", "sme": "sadji/Ruošša/Stavropol’skiy/Makhatsj-Aul" }, "category": "gnppl", "categoryName": { "nno": "folkesett stad", "nob": "befolket sted", "eng": "populated place", "fkv": "asutettu paikka", "sme": "befolket sted" }, "pathData": null } ]