Bug Fix: Javascript error in showDayCount() function