Making the accordion work following the backbone pattern