old_contents: import Web3 from 'web3';
  
  // set providor
  if(typeof web3 !== 'undefined')
    web3 = new Web3(web3.currentProvider);
  else
    web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545"));
  
new_contents: 
  // set providor
  if(typeof web3 !== 'undefined') {
    web3 = new Web3(web3.currentProvider);
  }
  else {
    let Web3 = require('web3');
    web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545"));
  }
    
  
subject: Fix import statement triggering in Mist