JavaScript can be a major part of the development of a CRM project. Depending on your solution it can be verify useful to have the ability to run a quick repeatable verification of the functionality. Unit Tests are ideal for this but do require the environment to be simulated in the case of a CRM web form this is the 'Xrm' object.
To facilitate settings this up I have created a version that will create this object using (meta)data from the customizations.xml file. The project source code and examples are available athttps://fakexrmpage.codeplex.com/.
Patrick Verbeeten
www.patrickverbeeten.com
www.wavextend.com