auth on click javascript sdk

Auth the app on the element id click if the user is not authed.

document.getElementById('button').onclick = function() {
   FB.login(
      function(response) {
         if (response.authResponse) {
            top.location.href='quiz.php?team=gators';
         } else {}
      },
      { scope: 'email,user_birthday,user_location,user_likes' }
   );
};