GUI-DAT is a controller library for JavaScript.
Refer to https://gist.github.com/792496 for basic usage.