Added JS code to handle initialize and sending click input.
Merge pull request #2 from sagarsane/master

Added JS Code.