Working with facebook login javascript sdk