Successfully call linkedin API function with AngularJS