Update substitute.js