General purpose JavaScript library