type alias JSRaw for Ptr
modified forEach
adjust foreach example