optimize some codegen for standard infix js