Fix JS generation for infix ops with dots