*8973* refactor JS handlers, move suggestUsername to ApiHandler