forked https://fgelinas.com/code/timepicker/ and adapt to jQuery 1.9+