lightweight cross-browser JavaScript library/API