Passing moment into meter controller IIFE