Lightweight and cross-browser JavaScript library