Update accordion.js

I think this edit is ok. but i can not understand what is fail cause.