Where did Malaysia get its name from?

Before it was combined with singapur it was malaya. After they combined the changed it to Malaysia. when they parted the simply left it like that.