Update hub_test.js

This is how I would send the JS code (not tested)