Add anon wrap function in main.js for better compression