Update main.js

Added Facebook call