[Refactor] Enclosed contents inside an IIFE + added "use strict"
[Minor] Added "use strict" in files that were missing it