Add function setTitleAction

Usefull to show a menu when click in title.
Update widget.js
Merge pull request #5 from pabloveintimilla/patch-1

Add function setTitleAction