Avoid repeated overwrites of config['extra_*']

Fixes #133
Wouldn't you want `extra_javascript = []` here, so that the templates can iterate over it?