Fix some of jdm's issues
Remove an unused return value
Remove another use of &JSRef
Change the event parameter of HandleEvent_ from an &JSRef to a JSRef
Remove a few more uses of root_ref