swapped out bar.js for better labeling function