Update theory.js