modified js so that it actually counts down, not up