Create ViewSwitcher.js