Update index.js

Fixed STRUCT function