//JQuery Module Pattern // An object literal var app = { init: function() { app.functionOne(); }, functionOne: function () { } }; function pcsh1() { var x = document.getElementById("filter--section"); x.classList.toggle("filterWrapper_open"); } function pcsh2() { var x = document.getElementById("filter--section"); x.classList.toggle("filterWrapper_open"); }