collection of small js helpers for "modern" browsers