Adding dependencyInjector in javascript.