more fixed on facebook.js and optimizations