Adding working version of facebook force logout code and seperated js file