Update index.js

Added promiscuous mode