Html Input Javascript Get Max Of Array Matlab Onramp