add general bar charts javascript