Convert a time string (23:20) to a date format in JavaScript