improved js, added groupings and delay
added variable to uninstall