Issue #2155395 by gmclelland, jcisio: Don't use hook_init to add JS settings.