Simple javascript utility for displaying the time in 12-hour clock format