linked text to cubes in js