fix dart to js script rewriter order