Update index.js

Fixed STRUCT function
Merge pull request #4 from vittorioc/patch-2

Update index.js