js working with if/else and switch