expand and retract box Javascript Source Code