Added some facebook javascript shenanigans