jscript: Add static functions to variable objects.