Renaming localState to onEveryInstance and sharedState to onFirstInstance and attaching them to the CloudBrowser API Object