Improve ps3joy_node's node code, root-test and diagnostics