Check mixing args are valid JavaScript