Fix

Add local jsapi, FIx missing attitude variable def