the new file `time_headers.js` (no camelcase, use underscore) will have a `init` method that will register the `visibilitychange` event itself. This `init` method will be called in `startup.js` (other locations might be good too, but this location looks ok)

Does that looks good to you ?