adding js stuff to log tailing