Yay javascript typo that causes total app failure