Update index.js

fix undefined ref when no voxel is within raycast