Add js functions to get data from FB