Finish legend for esri services and coronet jshint errors