Update figure.js