Tweaked main js file to play nicely with wordLists