Move DEFAULTS into .js file so we can still run offline, fix some interop issues.