Doing some javascript logs for debugging