fixed fallthough for js