Depnds on Jquery
init
$(function(){
new SJS(); // Switch is a reserved word.
})
put it in your
<script type="text/javascript" src="js/controller.js"></script>
<script type="text/javascript" src="js/api.js"></script>
<script type="text/javascript" src="js/ui.js"></script>
Call it on an element click class="btn-render-template" data-page="home"