Why is this code not wrapped in an IIFE, but the other file's source is?