Sounds like you have a time field on your layout. Your script is automatically putting the cursor in this field and that pops up the time picker. (Happens automatically in iOS devices.
Remove it from the layout tab order. Or if you don't need the field to be one that you can edit on this layout, set it up as a merge field or use behavior settings to deny browse mode access.