add handler for serving json of word and script for getting word json