Python Add Function To Class Instance Javascript Playground