update shape.js