'Default method used to render the final js links for the
rendered webpage.
Override this method in a sub-classed controller to change the output.'

def render_linked_js(self, js_files):

    paths = []
    unique_paths = set()
    for path in js_files:
        if (not is_absolute(path)):
            path = self.static_url(path)
        if (path not in unique_paths):
            paths.append(path)
            unique_paths.add(path)
    return ''.join(((('<script    src="' + escape.xhtml_escape(p)) + '"    type="text/javascript"></script>') for p in paths))
