converted facebook.js to funcjs arch