rhodes: add default event handlers for JS