Added social function to Functions.php, added ElementExists function to Scripts.js