Simplify index - this is just an iife anyway