write a js parser base on v8