Fixed and simplified JS toggle in folder view