sh404sef extension for jevents

unlikely to be of any use to anyone else. Needs code streamlining, but
it works for me.