Wrap code in IIFE to prevent variable hoisting
Merge pull request #1 from simonewebdesign/master

Wrap code in IIFE to prevent variable hoisting