Update index.js

Removed unused strScript function