Сократить JS if or statement [duplicate]