some more (or less) useful Javascript utils -- partly  dependant of JQuery