adding javascript example with minification.