move initialization outside script
update minified version