Update flatCube.js