Command To Take Input In Javascript Object Array Get Max