Added callback ability to JSON loader.