reformatted facebook.js to be readable