Fix trace in js_helper.cpp