def init_jsobject(cls, bridge, name, value, description=None):
    """Initialize a JS object that is a subclassed base type.

    Arguments:
    cls -- Class the object has to be created from
    bridge -- JSBridge instance to use
    name -- Name of the JS object
    value -- Value of the object wrapped as JS object

    Keyword arguments:
    description -- Additional information about the object

    """
    obj = cls(value)
    obj._bridge_ = bridge
    obj._name_ = name
    obj._description_ = description
    return obj