In default.js , locate the MobileServiceClient definition, uncomment the constructor containing the URL to the published ...

In default.js, locate the MobileServiceClient definition, uncomment the constructor containing the URL to the published mobile service, and comment-out the one containing the local URL. Press F5 to run your client project against your service in the cloud.