Fix public tests - they now monitor javascript errors too