cleaned up facebook.js