Added 'better' IIFE to the view model