Update index.js

raise an error when not responding directly