Html Input Javascript Get Max Of Array Javascript Push To Beginning