add javascript resource's tree