Add javascript log snippet