Added a method for communicating with JavaScript.

This is just a prototype method.