Updated code to access v8 API (was v6)
Updated code to access v8 API (was v6)