Update wit.js to work for deployed version in addition to local testing