JavaScript compiler: add missing namespace when inheriting service