fix "anonymous function" in console

Need to specify a function name when you create them as properties.
Initial modbutton port