added switchTo.js