Update ajax.js

Fixed timezone management for "timeto" control. This was previously set to have a maximum which was in UTC. Its now set to "to_date" which includes the time offset for the local timezone.