that awkward moment when js fails