Enabling unobtrusive binding for UI widgets in Javascript