modified genjs.grace to add attributes to top level vars and defs so they could safely be distinguished from methods