Add changeSourceToLocal function in demo.js