Fixed delay of list elements bug where the delay was no being reset, additional code cleanup
wrapped in namespace, added close button, started JSLint compatibility