Pure javascript widget for showing and hiding an element by animating height