adds javascript and sub menu to tools link