def METHOD_NAME(self, node, indent):
    text = ""
    text += '<script type="text/javascript"><!--\n'
    text += node.stmt.replace("def ", "function ").strip(": ") + "{\n"
    text += '    var self = [], loop;\n'
    text += self.jsemit(node.suite, indent + INDENT)
    text += '    return self.join("");\n'
    text += "}\n"
    text += "//--></script>\n"
    return text