Implemented issue #50

Hi all!

I have implemented doubleclick funcionality, I know that the code may  be  that is not very good. I am newbie developing in JavaScript (sorry for any inconvenience).