Changed facebook integration code to jQuery