Add santan and mix well. Add salt and let mixture boil for a while. Turn off heat and remove pandan leaves.
If you want it less sweet, reduce sugar according to taste. If surface of cocoa layer has firmly set, use a fork or knife to make scratches on surface, so that the 2 layers will bind together.