Fixes to timeHandler.js for countdown timer