JavaScript: assert()