Update readme example to use module pattern.