I am trying to create a simple HTML countdown with JavaScript, following this example. But it is not working. I am hosting my files on 000webhost. Do you see anything wrong?
<html>
<head>
<script src="/js/countdown.js">
var clock = document.getElementById("countdown-holder")
, targetDate = new Date(2050, 00, 01); // Jan 1, 2050;
clock.innerHTML = countdown(targetDate).toString();
setInterval(function(){
clock.innerHTML = countdown(targetDate).toString();
}, 1000);
</script>
</head>
<body>
Countdown until 2050
<h1 id="countdown-holder"></h1>
</body>
</html>