Online exp - lass function with names parameter is object{} instead of integer

I have a simple python class and am using Auto->JS to generate teh JS
one of the class functions takes a named parameter
e.g.

def move(increase = 1):


and it gets called with
myClassObj.move(increase=3)

It runs fine locally however running online the passed parameter ceases to be an integer and becomes an object (from console.log() printouts in the browser)
e.g.

Object ( increase: 3 }

and then it all goes wrong when I try to do maths on it in the function.

Any suggestinos/work around would be much appreciated.
I would prefer to keep it as Auto->JS
I’ve tried casting it to int when calling move() but that doesn’t change anything :frowning: