seems like this should be the way to use js with fb login