javascript string reporter