javascript timed_reload

Not reload immediately when empty value is passed in.

This can happen when there are errors in the user prefrences

Issue #366