Understanding JQuery use of Facebook API