more work on js_test functionality