now injecting dependencies in index.html where all objects are instantiated