wrapped in iife
fix js lint errors