callbacks to javascript working.

Signed-off-by: Kevin Gaddy <kevin.gaddy@gmail.com>