Updated Facebook js lib to work with a browser as well