Update index.js

added html option