Make update period configurable in config.js, use setInterval()