SetupTarget function marks region for shape events.
Minor fixes

Fixed offset issue
Setup stack
Started experimenting with direct memory transferring between JS and C++