Added more conversions to JS objects.

Including functions up to Function2.