fixed communication between javascript and OF