refactor for jquery

* rewrote all gismu.js to take advantage of query
* consolidated menu functions into a single loop of assignments — this
only worked once I realized that one has to use closures for those
functions.