Add Javascript interface to the object