index.html cleaned up; added dependencies.js service; pleased jshint

I've cleaned up a bit the index.html file, added a service for dependencies which will help us to inject any external library easier and cleaned up the js files for jshint.