Javascript If Array Not Inside Math