H8::Value#to_proc convert JS function to ruby Proc