Update FB code to HTML5 version