diff --git a/js/main.js b/js/main.js
index 6ebe4da692b60f3b8336df5ca6a5ca0495aff941..7d858721597de3cc57f2ed7d2458ba543f6a3e95 100644
--- a/js/main.js
+++ b/js/main.js
@@ -1,22 +1,20 @@
 import $ from 'jquery'
 
+const defaultPage = 'slideshow';
+
 $(() => {
 
+    showSection(defaultPage);
 
-    $('nav > ul > li > a').click(element => {
+    $('nav > ul > li > a').click(element => showSection(element.delegateTarget.id));
 
-        const id = element.delegateTarget.id;
 
+    function showSection(sectionName) {
         $('nav > ul > li > a').removeClass('selected');
-        $('nav > ul > li > a#' + id).addClass('selected');
-        showSection(id);
-    });
+        $('nav > ul > li > a#' + sectionName).addClass('selected');
 
-
-    function showSection(sectionName) {
         $('body > section').hide();
         $('body > section.' + sectionName + 'Container').show();
-        console.log(sectionName);
     }