update javascript to log objects unstringified

Log the actual objects passed to the handlers, rather than the string "[object Object]"