moved suggestion generation from elm to js to make is async later