Update code with FB JavaScriptSDK