Right I am creating a method which adds an Account to Dynamics CRM with an Ajax POST to a built in webservice, the code is as follows :
var context = GetGlobalC
Use a JS Package/Dependency manager like Jingo.js