moved fb to js file