Adds possibility to implement JSObject ant pass it as a callback to a
method of another JSObject