added protocol version to index.js