Wrap JS code (modMenu.handler) to allow Smarty "eval"

### What does it do ?

Wraps modMenu javascript handlers in `{literal}{/literal}` so we can use `eval` to allow nested Smarty variables in top menu entries (else JS `{` causes Smarty errors)