Load JS config vars using the global loading system

Change-Id: Ic2c17e6a1ec0c73870ce1e74e31f06b2d41e5466