factorial zeros is working in js