Item13069: working around angular.js issue #1417

- prevent first call to trigger a bogus jsonrpc
- make jslint happy
- removing now unused dependency injections