Is there a way to expand and collapse in JavaScript? What's the best way?