make getJSON work in IE and Safari