Refactoring and handling of future event
Fixed 2 bugs: milliseconds were causing bad percentage calculation; output string was starting 1s late
Fixed warnings reported by a JS linter
Better feedback when erroneous dates