Javascript Get Array Index Of Matlab Simulink