genjsbind is a tool to generate javascript to dom bindings from w3c webidl files, and a binding configuration file.