Javascript fix for accordeons with no open item (closes #52)