Example for Facebook API in JavaScript