Update dotpattern.js