First step to async
* added q
* promise chaining for word spell check
* html constructing moved to separate function