JS: convert 12 to 24