add helper function to convert raw v8 object to cpgf
Merge pull request #34 from cpgf/feature/v8-compatibility-api

add helper function to convert raw v8 object to cpgf