move facebook JavaScript to application.js