removed getJSON

moved json result into callback function