fix js errors, make timepicker smaller to fit in screen