Added common.js for charts