Fix timed_reload javascript

Something wasn't right with the way it was
called before