sentence: by the start of the 16th century , with malaccan sultanate in the malay peninsula and parts of sumatra , the sultanate of demak in java , and other kingdoms around the malay archipelago increasingly converting to islam , it had become the dominant religion among malays , and reached as far as the modern-day philippines , leaving bali as an isolated outpost of hinduism today .