added inactivity dissapear timer + option

I love this repo. One of the things I noticed immediately when implementing with different menu's and multiple items that have a context menu is that menu's don't disappear unless you click somewhere on the page. Now if you are not interacting with a menu it will close itself after a specified or standard duration.