Js how to write multiple ifs in a efficient way