fixing javascript for accordion