Shared JavaScript library