javascript switch case always default