Update castle.js