use catch to prevent javascript to stop working because FB
fix syntax error
Merge pull request #1 from catarse/master

update