Add first words.js
First working words solution
Move declaration of idx