Fix JS tests for supporting browsers.