Added callback parameter on authURL and JSON parsing before returning.