'Return a string suitable for JavaScript.'

def js_output(self, attrs=None):

    result = []
    items = self.items()
    items.sort()
    for (K, V) in items:
        result.append(V.js_output(attrs))
    return _nulljoin(result)
