set up a property to manage the latency from outside the plugin and added the proper comments. Updated index.html with the new script