made generation in js
Merge pull request #1 from znagler/wordstring_javascript

made generation in js