added facebook js and changes in controller