client-side javascript library loader