Update index.js

Updated with correct JSDoc notations.