Javascript debugger Website design
Produces output according to format.
See sprintf() for a description of format.
Returns the length of the outputted string.