Here we're directly inserting a string representation of a python object into the javascript.  This may work, but I would rather explicitly construct valid javascript code.  For one, I can never remember whether this will use the ``__repr__`` or the ``__str__`` method, nor can I remember the differences between the two.  Explicit is better than implicit.