Update index.js

Update 4/40/13 - Added port variable (default 50000)