generate better native code for javascript imports