Update accordion.js

Remove extra, unnecessary call to Array.indexOf() in the "removeGroup()" function.