updated javascript for offline_times widgets