Create camera switch

this javaScript code performs the switch between the cameras that exist in the  current scene