Consolidating code and grouping Variables

Also including minified version for accordionTo script.