Minify JavaScript snippet