Javascript switch

Please can we have the JS switch function added? It will make a lot of the flow much easier

This: