add formatting function for chart legend to prevent NaN from showing, use "--" when no value exists
fixed some bugs in beer-chart.js: 1. hasOwnProperty when iteration over keys. 2. currentDataSet initialized without 'var'. 3. "use strict" in new functions