Added typeof check to the jsonp callback

When getting data via a jsonp request, its useful to have a check that ensures the callback function is defined before calling it. This prevents a reference error from being throw in the browser if a function name is not defined when data is returned.