Fixed JSON utility to work from all threads including main. Properly executing function and returning data to callback function.