fix JavaScriptFold()