Change some typo in index.js
Verify if  global sendto is empty or not