added expandcollapse classes

Added the classes and ensured that the script would work without having
to test for aria-expand. I need this for testing the fallbacks
moved reoccuring strings to variables