Add base.js and write a nice toggling function