Update index.js

fix undefined ref when no voxel is within raycast
Merge pull request #13 from theoxylo/master

github edit: bug fix for undefined on no hit