markupgenerator: make $ global in the module