make logging persistent; add javascript log op