move js code related to repo barchart to chart.js.coffee
Fixed wrong order of arguments in network graph caused by refactoring