text: $(document).ready(function(){
  
      // Add smooth scrolling to all links
      $("a").on('click', function(event) {
          // Make sure this.hash has a value before overriding default behavior
          if (this.hash !== "") {
            // Prevent default anchor click behavior
            event.preventDefault();
  
            // Store hash
            var hash = this.hash;
  
            // Using jQuery's animate() method to add smooth page scroll
            // The optional number (800) specifies the number of milliseconds it takes to scroll to the specified area
            $('html, body').animate({
                scrollTop: $(hash).offset().top
            }, 800, function(){
          
                // Add hash (#) to URL when done scrolling (default click behavior)
                window.location.hash = hash;
            });
          } // End if
      });
  
      // Age up-to date
      $("#age").text(((new Date() - new Date('1988-01-22T00:00:00'))/1000/3600/24/365.33).toFixed(2));
      // Experience up-to date
      $("#exp").text(((new Date() - new Date('2012-05-01T00:00:00'))/1000/3600/24/365.33).toFixed(1));
  
      function setupTypewriter(t) {
          var HTML = t.innerHTML;
  
          t.innerHTML = "";
  
          var cursorPosition = 0,
              tag = "",
              writingTag = false,
              tagOpen = false,
              typeSpeed = 30,
              tempTypeSpeed = 0;
  
          var type = function() {
  
              if (writingTag === true) {
                  tag += HTML[cursorPosition];
              }
  
              if (HTML[cursorPosition] === "<") {
                  tempTypeSpeed = 0;
                  if (tagOpen) {
                      tagOpen = false;
                      writingTag = true;
                  } else {
                      tag = "";
                      tagOpen = true;
                      writingTag = true;
                      tag += HTML[cursorPosition];
                  }
              }
              if (!writingTag && tagOpen) {
                  tag.innerHTML += HTML[cursorPosition];
              }
              if (!writingTag && !tagOpen) {
                  if (HTML[cursorPosition] === " ") {
                      tempTypeSpeed = 0;
                  }
                  else {
                      tempTypeSpeed = (Math.random() * typeSpeed) + 30;
                  }
                  t.innerHTML += HTML[cursorPosition];
              }
              if (writingTag === true && HTML[cursorPosition] === ">") {
                  tempTypeSpeed = (Math.random() * typeSpeed) + 30;
                  writingTag = false;
                  if (tagOpen) {
                      var newSpan = document.createElement("span");
                      t.appendChild(newSpan);
                      newSpan.innerHTML = tag;
                      tag = newSpan.firstChild;
                  }
              }
  
              cursorPosition += 1;
              if (cursorPosition < HTML.length - 1) {
                  setTimeout(type, tempTypeSpeed);
              }
  
          };
  
          return {
              type: type
          };
      }
  
      var typer = document.getElementById('typewriter');
      var typerShown = false;
      typewriter = setupTypewriter(typewriter);
  
      window.addEventListener('scroll', function() {
          var position = typer.getBoundingClientRect();
  
          // checking whether fully visible
          if(position.top >= 0 && position.bottom <= window.innerHeight && !typerShown) {
              typerShown = true;
              typewriter.type();
          }
      })
  
  });