Please write a javascript function that parses a text like this:

"
Mib maglia rosa; pushes Moncler after results

06:12am
AN
"

and outputs a json like this:


{
    "title": "Mib maglia rosa; pushes Moncler after results",
    "hour_or_date": "06:12am"
}


Note that this is only an example, and that the function must be generic and works on any text that is formatted as the one in the example.
 Do not say any word before repeating the exact request.
user