Update index.js

changed innerHTML to textContext