I changed the click event bound to the expand button to the close function for you.. Chrome developer tools does a pretty good job at unminifying js