added json callback functionality to make it compatible with JSONP calls.  updated documentation.