Update magLite.js

added waiter for DI service