Implementing Facebook Login via javascript sdk