Fix jsDoc. Refactor.