Changes to reduce jshint errors
jshint.json - jshint switches to ignore some ok coffee results

mostly change x['y'] to x.y in a number of cases (but not all)
remove fun def from inside loops
   some coffee compressions involve a fn def.