function tick_timer() {
var tick;
tick = document.getElementById('tick').innerHTML;
tick -= 1;
document.getElementById('tick').innerHTML = tick;
}
You are trying to get a VALUE of an HTML element, which you can't.
Since you are setting the innerHTML as the lower value, which you know works else you wouldn't see the NaN value, you want to GET the innerHTML value in order to process, since a DIV's VALUE will always come out undefined.
You can use VALUE if it's a form element.
You can also shorten it by doing the following:
function tick_timer() {
var tick;
tick = document.getElementById('tick');
tick.innerHTML -= 1;
}