I will need to create a boolean javascript object and I was wondering if I can add a change listener. Is this possible? Ideally I'd like to register with this variable so that when it changes to will invoke a callback.

Thanks