APD:206: Moved code from glossary.js to glossaryPage.js