You should be able to use ``jsbox_js_config`` from https://github.com/praekelt/vumi-go/blob/develop/go/apps/jsbox/utils.py#L10-L12 with a ``try: ... except: ...`` instead so that the logic is only in one place.