http://tech.airsoftcanada.com/
Parts diagrams of quite a few guns.
The KJW M9 is in there.
It's not that hard to figure out, although from experience a few components may require trial and error. Consider it a learning experience. It's actually quite gratifying once you manage to figure it out for yourself and have a working gun in your hands.