Refactoring

- Moving application scoped variables to intro.
- taking keydown variable out of the global scope and bringing it to
application scope.
- removing some commented code
- removing unused sso variable