10.6 JSMDirect or JSMProxy not working

Refer to:

JSMDirect Program Logic

JSMProxy Program Logic