Set default context of 'extra_javascript' to use kwargs['context']['extra_javascript'].append('...') without error.