Indonesian President Joko Widodo and Prime Minister Najib Abdul Razak have agreed to work together on six issues, including maritime borders, migrant workers, as well as education and investment.