Update index.js

Changing defaults to undefined instead of null