Client
From MobileX for SageCRM
The client plugin is created in the file "SageCRMWS/js/plugins/PLUGINNAME/client/plugin.js"
You would add the following:
var onDocumentReady = function () { } var onContextChanged = function () { };
This is the basic setup of the client plugin