Create switch.js

An alternative to if else statements.