Added mouseclick functionality

Added some functionality to detect a mouse click in order to select a time. Fires a "timeselected" event.