use jquery for log output