Lightweight JavaScript library for commonly used functions