A resource loader for client-side javascript