Update testbrowser.js

Add some functions