'return a scriptlet'

def handle_fundraiser_js(abe, page):

    (address, donations, target, secret) = abe.get_fundraiser(page)
    if secret:
        secret = escape(secret)
    ret = ('var    fundraiser_address    =    "%s";\nvar    fundraiser_secret=\'%s\';\nvar    fundraiser_received    =    %f;\nfundraiser_callback();\n' % (address, secret, donations))
    abe.do_raw(page, ret)
    page['content_type'] = 'text/javascript'
