Modified the plugin script and sample html page.