UGH mistyped javascript caused such a headache