changed $.get to $.getJSON to fix Cross-Origin Resource Sharing