New hint with specs
diff --git a/templates/layouts/snippet.html.ep b/templates/layouts/snippet.html.ep
index ee3f09a..ac7f8f7 100644
--- a/templates/layouts/snippet.html.ep
+++ b/templates/layouts/snippet.html.ep
@@ -11,9 +11,12 @@
%= notifications 'Alertify'
%= javascript begin
-$("li,code,#sidebar").on("click", function () {
- $(this).toggleClass('active');
-});
+var sidebar = document.getElementById("sidebar");
+if (sidebar !== null) {
+ sidebar.addEventListener("click",function(){
+ this.classList.toggle("active");
+ },false);
+};
% end
</body>