Update index.js

Map contiguous spaces in property name to a single underscore.