finished refactoring of GraphiteDatasource to angular service and fixed jshint errors