Changed restrictScope to restrictToScope

Its called restrictToScope, not restrictScope.

From SharePoint sp.workflowservices.js source:
get_restrictToScope: function
SP_WorkflowServices_WorkflowDefinition$get_restrictToScope() {ULS8GF:;
set_restrictToScope: function
SP_WorkflowServices_WorkflowDefinition$set_restrictToScope(value)
{ULS8GF:;

Same as in the managed API:

http://msdn.microsoft.com/EN-US/library/office/microsoft.sharepoint.workflowservices.workflowdefinition.restricttoscope(v=office.15).aspx