javascript fixes in KWIC/concordance functions