Adds an Event Listener that listens for both click and double click.
Add double-click.js file to your project and link it on html file.
element : html element that you want to add evnet listener to.
onClick : a function that executes when user clicks ONCE.
onDoubleClick : a function that executes when user clicks TWICE.
doubleClickDelay_MS : the delay between clicks that when user clicks again on that duration, system takes that as Double Click.
Check out the example.js